package lab02.test06;

public class Ladder {
    double topline;
    double baseline;
    double high;
    double area;


    public void getArea() {
        area = (topline + baseline) * high / 2;
        System.out.println("梯形面积为：" + area);
    }
}
